package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 老师管理对象 user
 * 
 * @author ruoyi
 * @date 2022-04-10
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private String objectId;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 用户类型 */
    @Excel(name = "用户类型")
    private String userType;

    /** 称呼 */
    @Excel(name = "称呼")
    private String nick;

    /** 手机 */
    @Excel(name = "手机")
    private String mobilePhoneNumber;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 认证 */
    @Excel(name = "认证")
    private String authData;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    public void setObjectId(String objectId) 
    {
        this.objectId = objectId;
    }

    public String getObjectId() 
    {
        return objectId;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setUserType(String userType) 
    {
        this.userType = userType;
    }

    public String getUserType() 
    {
        return userType;
    }
    public void setNick(String nick) 
    {
        this.nick = nick;
    }

    public String getNick() 
    {
        return nick;
    }
    public void setMobilePhoneNumber(String mobilePhoneNumber) 
    {
        this.mobilePhoneNumber = mobilePhoneNumber;
    }

    public String getMobilePhoneNumber() 
    {
        return mobilePhoneNumber;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setAuthData(String authData) 
    {
        this.authData = authData;
    }

    public String getAuthData() 
    {
        return authData;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("objectId", getObjectId())
            .append("email", getEmail())
            .append("userType", getUserType())
            .append("nick", getNick())
            .append("mobilePhoneNumber", getMobilePhoneNumber())
            .append("username", getUsername())
            .append("authData", getAuthData())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("password", getPassword())
            .toString();
    }
}
